The type key in TypedObjectDeserializer can now be specified via a constructor argument

Also bumps the version to 2.1.