Fixed deserializing classes with field names.