add missing includes in TemplateVec

this PR fixes MSVC error after #415 was merged.