Add type generic parameter to TreeConstraint #30

* support for toManypath