Fixed temp arrays that were allocated too large (no change in peak mem)