[WebAssembly] Move type conversion code of JSToWasm return type to JS wasm wrapper