Lots of bugfixes and testing improvements in expression parser.