XSD: Cleanup old code.
XSD: Tweak dict keys used in flattening.
XSD: Fix some compiler warnings and type errors. Enable c2if phase.½