Implementing better chunk allocation algorithm for sval

Reallocates token->sval in TEXT_CHUNK_SIZE chunks. Replaces strcat with
memcpy on sval such that 'strings' with embedded null characters are
saved correctly. Does not reallocate more than necessary. Shrinks sval
when done.
Adding tests for sval chunk allocation algorithm