New identifierresolution pass compiles.

Includes changes to StandardPrelude and colelctionsPrelude
that correct bug that stopped them passing the new id checks.
Adds a few compensatory changes to parser and code generators.