[range] Fixed a bug in istream_range() that prevented it from working with character types other than 'char' (refs #7407).

svn path=; revision=84707