Iterate over the config keys

The first commit is something the change in the test brought up.

The config behaves like a dictionary with peculiar equality rules, so make it behave like a python dict when we iterate over it.