Previously we were marking these symbols as functions but setting
their params and return types resulting in the wrong signature in
the generated wasm file.
This change ensure that all Symbols that are marked as function
also their parameters and return values set.