Extract reference comments out into their own diagnostics array.

Only actual parse errors are stored in parseDiagnostics.  Reference errors are stored in a separate
array now.
Extraneous space between "for" and "things"