Implemented instanceOf and notInstanceOf.
Merge.