SI-6736 Range.contains is wrong

Removed once-used private method that was calculating ranges in error and corrected the contains method (plus improved performance).
Changed last to throw an exception when there are more elements than can fit in a collection (to be consistent with apply(length-1) and the like).