Always use "new" with Qt.rect
Fix adding windows when compositing is disabled
Always use "var i" in for-loops
Add manual tiling mode
Hack around endless loops

This isn't perfect, but should hold up until the underlying issue is fixed