Fixing uninitialized memory access bug in text::append

Pointers into vector's were retained after a resize.