This ensure that the modification on the object are removed at the end of the scenario. issue10422 review332891002 (grafted from 8df83d0cea818e030e694a61ca38e217ecaf60bc) --HG-- branch : 6.0
issue4080 review343891009
issue9257 review315331002