fixed bug in merge! where we weren't properly handling the children of nodes who we didn't have a reference too during merge