fix crash in find_tree_base
fix performance defect in population autolabor when determining if the manager needs to do his job