allow integers as keys when deserializing
allow enums as keys when deserializing dictionaries