isl_space_flatten_domain: rename "dim" argument to "space"