codegen, toplevel: remove dead vector code