Fix expanded and QCD slots/overrides not getting updated
properly when renaming a collection. This was especially
problematic when the name change triggered other name changes.
Made QCD internal structure more stable.
Prevented reload scripts from resetting QCD slots.
Fixed QCD being left in an incorrect state on undo/redo.
Fixed a small error on unregister.