Added better messages on class check failures.

[Delivers #55641880]