Fix issues with memory-only configurations.

As per #30, here are the issues I encountered with Config objects that are initialized with a data dict and therefore have no filename.