Partial implementation of #462

"with DyTxn" -> "in DyTxn constructor"