Convert ByteArray/StringArray structs to pointers and copy semantics.