Added dirty object to raise TransactionError when not saved or reset.