Vec type promotion and optimizations