Fixed foldTree usage in symbol categorization to first expand deeply