wasm: Implement @ptrToInt and fix indirect function call

- Previously the table index and function type index were switched.
This commit swaps them.
- This also emits the correct indirect function calls count when importing the function table
b9a0401e23Luuk de Gram committed on 1/1/2022, 11:59:43 AMparentf644c8b
4 files changedLine totals unavailable