Map fields when deserializing nested objects

TODO: Might break some tests. Maybe a serializer class needs to be involved here so there's some context available during deserialization. Also, this failure needs a test.