pet_scop_collect_arrays: consider all accessed data spaces of an array