Complete getType() function in symbol.c
getType() returns -1 if proc or declaration does not exist.