Fix Trac #2394: test for non-algebraic types in standalone deriving