Fix bug with vector insert when inserting into an empty vector. How the hell this didn't cause segfaults until now is beyond me.