[performance] Fix performance of simple range index lookup.

If there's only one context node: always restrict lookup using filter. Same approach as for field lookups.