[tests] Test cases for instanceof
[toplevel] instanceOf fixes

instanceOf does not consider interfaces.
Classes are instances of the Class object.
[toplevel] Namespace in getQualifiedClassName for built-in classes