[range] Fix off-by-one error in implementation of irange() (refs #7731).

svn path=; revision=84701