Fixed bug where the noRemove attribute of nonterminals was not being respected
by the optimization transformation.  This caused anomalies to be reported with
the wrong method location.