Switched to TH instead of generalized newtype deriving for the Safecopy
instances (since deriving SafeCopy is broken on GH 7.8)