Issue #274: Check range data type.
Issue #274: Extra checks and tests on the range.