unification of trees, symbols and types