ReplacePtrsWithInts: Always zext or trunc alloca array sizes to i32. Also,
simplify inttoptr -> ptrtoint combos in SimplifyCasts.