Fix thinkos in flatten_args.

Showed up on 32-bit platforms as corruption/data loss. Reported by
nwc10++.