Wizard bug fixes

Fixes #1332
Fixes #1333 
```When QObjects are created on the heap (i.e., created with new), a tree can be constructed from them in any order, and later, the objects in the tree can be destroyed in any order. When any QObject in the tree is deleted, if the object has a parent, the destructor automatically removes the object from its parent. If the object has children, the destructor automatically deletes each child. No QObject is deleted twice, regardless of the order of destruction.

This is the point of passing "this" as parent. And it is quite easy to check for yourself that object to destructors do get a called during their parent destruction.