Fixed a few small mis-behaviors in Config and added new tests for it.