replaceWithChildAppendingRules

Same as replaceWithChild, additionally attaching rule as the clause StateRuleExecution will unify against.