`range` should throw a useful error on invalid values.