fix a bug with IR modification helpers

We weren't updating cf_node.parent.