Removed SetValue from SetRange, because it is not needed there. Added
checking, if value is not in range -> if not, set to min value.

Added checking, if min == max to knob position calculation. This way we
can avoid division with 0, if min == max. This is only affecting, if the
slider has only one value, which is rare, but for me this makes all the
difference.