Made `ObjectPacker.Unpack()` support Enum types.