Fix bugs with changed attributes tracking when transaction gets rollback
Merge pull request #13166 from bogdan/transaction-magic

[Regression 3.2 -> 4.0] Fix bugs with changed attributes tracking when transaction gets rollback
Keep track of dirty attrs after after rollback.

[related #13166]
Merge branch 'rm-trasaction-fix-13166'