update persistent-template TH code for GHC 7.10