Added array serialization.