Add TypeUtils class. Updates to the lexer utilities.