Intercept test failures due to ClassCastExceptions that GwtMockito can't do
anything about so that we can at least provide an error messages to users
hinting how they can work around the problem.

Refs #4, #22, #43, #47.