Now printing seemingly correct allocs for arrays.
function nestForAlloc

Takes care of the printing of the first initial alloc aswell.
Made it so it is easier to pass arguments to nestForAlloc
by using a local function.

Code for the alloc pattern