Made a change to TreeTransformer to fix areSubtypes call