Fixing issue #5, which is due to buf_ostream writing to block beyond vector's end.
Extended test_vector_buf test case to check writing to empty vector.