Moved more generic methods into AbstractTreeModel
Some cleanup