Improve errors for invalid newtype declarations