Add support for dynamic array serialization