Fix object/hash serialization. Slightly faster aray serialization.