Regression test for the compiler that used to wrongly optimize an instanceof.