I just tried `var stack = [];` and it confirmed what I saw this week. The more explicit `var stack = new Array(numOutputs);` makes this function ~12% faster, and it's called once per pixel of Type4 images.