Adding support for deserializing classes via maps.