make sure the correct object class is used when converting a tree entry object to a GTObject