Add Functor and Applicative instances to Polyester and ANSI
Fix build with GHC 7.8