Changes to the type checker with respect to UndecidableInstances