Serializer discards a class name in TypedHash

Refer to warhammerkid/rubyamf issue 11