https://docs.wasmtime.dev/examples-rust-multi-value.html
This should cleanup a complex area right now in the Java to WASM bridge which requires a heap allocated reference type be passed into the function right now.
This would be one step towards supporting wit-bindgen