pet_scop_collect_arrays: also collect arrays that only appear in filters