improved error messages for invalid case class signatures