Fixed parsing of pointer declarations
Implemented type checking for pointers