Fix various layouting glitches, and a crash on exit
Delegate recycler deletion happened after QGuiApp tear-down, and was
triggering a relayouting due to the action visibility property binding
changing. This is mostly a workaround, needs deeper investigation.