Representing genericIndex as set of pairs, and ranges with icl