HPCC-10525 Solve constant folding functions for ARM

Some suble alignment issues for ARM calls.

Also fixed some issues in the x64 code that I spotted while I was there.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>