CodeGen: use a range-based for loop

Convert a debug assertion into a range-based loop form.  NFC.
CodeGen: make i686-windows-itanium more similar to msvc

The itanium environment follows the system calling convention for structures.
Pass small aggregates via registers.