Fix import of type classes.

Importing type classes is currently broken, because imports are generated as `import Data.Traversable (class)`.
This patch fixes that. Type classes with super classes are also supported.

Cheers