While at it, ensure that config is validated, and fixing a bug related to reuse ctx between multiple upstreams resolving.