Better error msg for annotations on unbound ids

Closes PR 14246

Please merge to v6.0
Quote the identifier in the declaration error msg

Please merge to v6.0