Added support for deserializing into unrelated types.