Better out of bounds generation for ranges
Issue #309
new
Already implemented in outofboundsgeneration branches (1,2), but should be checked for correctness and efficiency