separate out shared PetScan::update_scop_start_end, fixing range of DeclStmt