Add Functor/Applicative instances for HappyIdentity

This is needed for the Applicative-Monad proposal, otherwise Happy generates invalid code.