Start porting parse_algebraic_notation bugfixes from master; not stable yet
Finish porting parser bugfixes, remove old debug messages