2 Minor fixes

stupid mistakes in vector_template.c:
Remove unused variable
replace leftover sizeof(int) with sizeof(TYPE)