derive Eq instance for empty data decls (ticket 7401)