wasm-linker: Correctly resolve function type

When performing relocations for a type index,
we first check if the target symbol is undefined. In which case,
we will obtain the type from the `import` rather than look into the
`functions` table.
1a3f58f5e5Luuk de Gram committed on 6/24/2022, 6:12:17 AMparentcb28fc2
1 file changedLine totals unavailable