Fix typeable for ghc-7.8.
Merge pull request #152 from tweag/development-fix-typeable

Development fix typeable - thanks Alexander Vershilov!