Fix "not a class" crasher in live variable analysis

Predicate the `asClass` cast with an `isClass` check.

Fixes #63
Merge pull request #64 from retronym/ticket/63

Fix "not a class" crasher in live variable analysis