Change Function::getToken return a GooString instead of a pointer

Makes the calling code simpler, also no need to check for null since the
function was never returning null anyway

Fixes a memory leak since some of the conditions were missing a delete
tok call
2 files changed