HPCC-10525 Solve constant folding functions for ARM

ARM32 implementation - tested in isolation but not in the context of the
compiler, as I don't have a suitable machine.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
incrementing length without pushing any data means you will be copying uninitialised (and if you're really unlucky unallocated data).