pet_scop_collect_{reads,writes}: take arguments into account