Test for derived classes and interfaces in InstanceOfCondition.
Add IsNotNullCondition.