DO NOT MERGE - Review Only - Clean analyzer

Since CI seems to be down, this is the whole PR for review by @sjrd. The true PR is in #1412
I would not include `isStaticModule`, `isInterface`, `isRawJSType`, `isHijackedClass` and `isClass`. External code should use `kind` instead.