Fixed lex's priorities, added 'this' and 'super' invocation, fixed template classes and variables