Also fix the unused component warning when that happens Fixes #7176 ChangeLog: Warning when a type name overwrite another