Fixed bug where maxUsage wasn't working properly for rules with repeated nonterminals on the RHS