Add primitive support for deserializing objects into instances.