add pet_context_clear_writes_in_{expr,tree}