Fix pattern to index matcher
  - if the number of match patterns is zero, this is not a match at all.
  - if the number of condition is unequal match pattern to a match pattern this isn't a full match.
SortIndex: fix the way we register our results to the framework
add tests to revalidate IndexRangeNodes superseeding sorts
 TODO: two cases aren't found by the 'use-index-range' as we would expect