Added vector code_gen. Needs to fix inner consts code_gens too.