Extract ga_do_grow() from ga_grow()

To allow an implementation of GA_APPEND that avoids a function call for every
append.