[GHC] #10835: Regression in standalone Data deriving for phantom types