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.
As discussed, run prototest testcases and will merge once regressions are 0. thanks!