index: add Range and Selection support