void replace_children(array(AbstractNode) children)
Replaces the nodes children with the provided ones. All parent references are updated.