Added support for array serialization