add MultiParamTypeClasses pragmas for correctness

GHC is apparently OK with referring to MPTCs without enabling the
extension, but technically I think this is not correct, and
haskell-src-exts does not like it. See http://hpaste.org/83072 .