MODE-2034 Fixed the restore operation of a parent with 2 unversioned children.

The underlying problem was caused by the fact that when performing ```orderBefore``` operations, children appear both as *removed* and *insertedBefore*. However, the existing child reference iterators were always seeing the nodes as removed first, never returning them.