fixed problem with .enumerate() on grammars that have terminals in RHS
2014 Oct 8