Add serialization and deserialization to OFDataArray.