use proper base type when finalizing vectors
remove finalizeParam and properly use finalizeLLVMParameter everywhere