tools: move TreeType enum into TreeTool