isl_dim_dup: check input dim