modified SubstitutionTransformation to work better with mongo (species that have
'fake' fractional oxidation states are not allowed as bson dict keys)