Fix issue with holes in array patterns