Patch to have PDL::PP calculate the size of z and allocate work for you

This reduces the complexity of the perl-side wrapper functions. I think there's more that can be cleaned out. I don't think this'll change any of the success or failure, but it does isolate the z calculations for us.