Fix a bug in indexOf(). Add indexOfElement() and request().

... meaning that indexOfElement could return a result less than `fromIndex` !