Got rid of invalid 'TYPE_ANY' objects being generated in function calls, as well as unitialized function types being generated.