fix next(): for non-LiteralType InputIterator