Improved restoring of deleted complex structures with local embedded
changes.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>