* grammar: fix bad check for root symbol, correct error logging * add tests to demonstrate root symbol check failure