Add support for stream i/o on byte_array.
Need to test the protected receive() method somehow.