added support for enums (or other string convertable types) as keys to maps for json serialization