Fix a slew of namespacing-related issues.

Fix a bunch of oversights in the transition to namespaced config variables.