isl_space_flatten: rename "dim" argument to "space"