Throw TypeError if extends-expression is no Class

If the extends expression does not evaluate to a Class, it should throw
a TypeError. Currently slash tries to access the extens expression as a
Class whitout checking it first, which leads to undefined behaviour
(usually resulting in a segmentation fault).
Merge pull request #44 from vstm/extends-expects-class

Throw a TypeError if the extends expression does not evaluate to a Class