true iff all elements in range are equal (or range is empty) to element.
Possible alternatives or aliases: allElementsEqualTo
assert([42, 42].allEqualTo(42));
See Implementation