Some more phasing out IRState in codegen.
C++-ify glue.
Bug 77 - ICE with static array argument