Fix mutation of childNodes array
Prevent merging over restriction relations (#1512)