Types array serialization fixed