Fix wasm2c loop (#2816)
Fix wasm2c loop (#2816)

The refactoring of the loop in #2812 was wrong - we need to
loop over all the exports and ignore the non-function ones.

Rewrote it to stress that part.
WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen