This is based on the SharedString code and will allow sharing ownership of arrays between Rust and C++.