Error when deriving Typeable for associated type