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.
Merge pull request #1343 from Microsoft/parserWork

Extract reference comments out into their own diagnostics array.