isl_basic_map_apply_domain: perform proper compatibility checks
isl_basic_map_apply_domain: perform proper compatibility checks

In particular, the original code would only check that the number
of parameters and input dimensions are the same.
The parameters themselves and the input spaces also need to be the same.

Signed-off-by: Sven Verdoolaege <e5350bbed4977f5eb8ae1dc6abd9ae59d21ace75@kotnet.org>

inducer/isl-mirror,PollyLabs/isl,PollyLabs/isl,PollyLabs/isl,nicolasvasilache/isl,nicolasvasilache/isl,nicolasvasilache/isl,PollyLabs/isl,PollyLabs/isl,inducer/isl-mirror,tobig/isl,tobig/isl,tobig/isl,nicolasvasilache/isl,inducer/isl-mirror,inducer/isl-mirror,inducer/isl-mirror,tobig/isl,Meinersbur/isl,Meinersbur/isl,Meinersbur/isl,nicolasvasilache/isl,Meinersbur/isl