pet_scop_collect_domains: properly handle statements with arguments