added RangeTest optimizations to VertexQueryOptimizer