fix #349 maximizable Dialog service pack

Fixed issues with:
1. Dialog maximized from start
2. Resizing Dialog while maximized
3. Resizing viewport while Dialog maximized
4. Unmaximizing the Dialog after full section refresh

Additionally:
1. Perf and readability improvements (`changeProperty` vs
`setProperty`).
2. Test for destroying/creating Draggable/Resizable.