when ApplyRules resizes nodes_, the reference to `cat` may become invalid and the parser segfaults (observed with grammars full of unary rules)
when ApplyRules resizes nodes_, the reference to `cat` may become invalid and the parser segfaults (observed with grammars full of unary rules)

pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy