0.4.6: added Lexer.assert_type()