Adding root reference

Subj: root reference — `/` — added. See its description at #1240.

Also, as a side effect, we now remove duplicates from the selector lists.