Static methods for output array serialization and deserialization.