Min/MaxValue for RangeItem

Modified RangeItem for better handling of min/max values