Description: When I want to insert a reference to a headline via "insert"/"Cross-Reference" > "Type":"Headings", "Refer using": "Chapter", it appears in the text as "__RefHeading___Toc####_#########" (where # is an number character) instead of the text of the referenced headline.
Maybe Menu/View/Field Names.
Indeed, that was it. Must have accidentally clicked it.