Rename the function 'grow_vector' to 'vector_grow'.
Modify the function 'vector_set', it will free the old elements if the new one is not equals with the old one.