* avoid converting from uint64 to int, and where most feasible, int type conversion at all * .len.uint64 -> .len64 * fix 32-bit compilation * try keeping state_sim loop variable/bounds as int for 32-bit Azure * len64 -> lenu64