Fix some immediate encoding issues on ARM.

Function with a lot of arguments easily overflow the immediate limits.

There are still problems with stack load and stores with large offsets.