Add primitive support for deserializing objects into instances.
Self review.