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