check_treelog_names function

Check if the treelog has the list elements of a valid treelog object.