fix cascade inserts

Previously, we had different behaviour whether a document was new or managed in the behaviour of persisting child/children.

There is some reorder of when things happen going on, so it has the potential to break on some edge cases i fear.

Fix #388, #434