issue #20154: Fix problems with document box.
issue #20154: Solve problem where child arrays don't delete.