Allow tests to load string constants as files.
Cleanup parser's utility method and add errors for ambiguous identifiers.