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 or setting the last element, it will actually lose your stuff!