Improved RangeDatatype.