Use search instead of match to find unresolved links.

Warn for unexpanded macros.

(cherry picked from commit d15e3a7e62b79fa0f74f50463e46cd7d05a345b7)

Conflicts:
	_scripts/cfdoc_sourcelinks.py