TTree: refactored DoPersist()