Fix wildcard identifier names in error messages