Don't lose our elements when calling git_vector_set()

Turns out that if you call ```git_vector_set``` with ```position != length```, that is you are not appending an element, it will actually lose your stuff!