Move some methods from DirTreeModel to DirTreeModelItem and fix some row updating problems.