Fixed a trivial bug in isRangeType().