isl_qpolynomial_drop_dims: properly handle nested spaces