Add the hasRangeInit() matcher for range-based for loop.