Fixed bug in statement type tracking for Formula parser.