fixes to txn.dontPersist and model._dontPersist