[Template-haskell] type classes and template haskell (bug?)