add a getter for the entry type of a tree entry