For GHC, implement the Typeable.hs macros using standalone deriving