Fixed stupid RuleItem extends mixup; cant use LinkedHashSet because item may appear multiple times; coded in last case in grammar parser.