class library and server: implement wrapped indexing for SelectXFocus, add a new operator: wrapdif.