[WebAssembly] Support non-legal argument and return types.