isl_multi_intersect.c: extract out isl_multi_*_check_compatible_domain