Add type generic parameter to TreeConstraint #30

* storing type inside TreeCon