Fixing KeyError - bson doesn't allow numeric keys in hashes, even though python does, so all nested dicts need to be converted to string keys, which I'm doing across all TraitAnalyzer objects now.