Raise maximum number of arguments to a Halide Func to six(6).

Add code to save and restore the stack pointer around on stack
allocations (alloca calls). This prevents excessive stack use, and
crashing due to running out of stack in certain cases.