add option to create rectangles as polylines

allow operations to apply to hidden layers
Merge branch 'master' of github.com:qcad/qcad