Motivated by #939
Currently dotty allows different trees to be in places where they shouldn't. Examples that I know are
- TypeTree can be a qualifier of a Select node;
- TypeTree can be a statement in Block.
I am pretty sure that other examples exist.
It would be great to trigger errors early in Ycheck, indicating which phase introduced such trees.