Optimizes some array allocations in interpolate module.