Added grow_fn and retain to Vec

Fixes #13249