Add new scope name for configuration

@nedbat @cpennington This is the work on adding a named scope for configuration.
Would it be better to `try/catch` here, rather than asking for `has` first?