garray: comment and refactor a bit more

The following functions are affected:

- ga_remove_duplicate_strings
- ga_append