Add Var dimension code to promotion and coercion