Minor cleaning.

* Avoid copy constructors in range-based for loops,
* Make sure to call setVector only when there is something to set.
Closes #484.

There is no need anymore to check for marked faces a priori.