use GHC 7.7 (and up) Typeable derivation
Merge pull request #1 from ggreif/master

made this GHC 7.8-ready