true iff all elements in range are equal (or range is empty) to element.
Possible alternatives or aliases: allElementsEqualTo
See Implementation