More fixes for API changes, const array

TODO: check if VectorTy and StructTy need corresponding change.
More args fixes
Fix printVAIntrinsic

again, order of arguments
Fix pass ordering

CFGSimplificationPass reinserts switch statements, which are
still broken, so move it to before LowerSwitch