Entering a parent frag after entering a child frag should work now. The child will be reparented and the generation field for all descendants will be incremented. The code to do this is a little tricky since it has to do things like checking for cycles, so let me know if you run into problems!