Fixed instanceof check on nonreifiable types.

Handled test cases: Instanceof01|02.