Removed constexpr from substr() as it doesn't work with BOOST_THROW_EXCEPTION. Added a test for streaming.

svn path=/trunk/boost/utility/; revision=84518