tree: Compilation of TreeClassifier fixed