Add a convenience method for streaming array serialization