Retain selection after comment/uncomment (fixes #986).

* Selection will expand to whole lines
* No selection in case nothing was selected when pressing CTRL+D/SHIFT+CTRL+D
* Additionally the last line is not included in case the cursor is on column 0