fixed TestParseTrees test code
fix an infinite right recursion bug
slight performance improvement
fix lexer issues (appeared after fixing parser issues due to change in
config set)