Added type checking tests for pointers, and fixed bug in which function
arguments wern't being placed in scope