Small refactoring of tbytevector.cpp

Slightly reduced memory re-allocations and copies.