WebAssembly: clear out insignificant i32 bits when calling JavaScript