Add typevar_dim type for dimension type variables