lexer: Token testing functions now take a const argument.