fix function argument type inference

 - fix function arguments always returning TYPE as null