PetScan::scan: use expansion offset to determine if statement is inside scop