ir: Initial IR rework on enums.
semantic: Wire up EnumDeclarations semantically.