Codegen fix to assign right return type name to FFI methods

FFI function nodes currently show "var" for their return types. This has been fixed by assigning the correct return type names from reflection to the function tables in codegen. After this fix the nodes reflect the correct return type.
Check.