Add array serialization.