Make tee work correctly for std::streams.  Fixes #8315.

svn path=/trunk/boost/iostreams/; revision=83505