Improve checking of bounds for ranges
Improve checking of bounds for ranges

Now the ranges, the lower and upper bounds, are required to be sympified
to expressions.

tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge