This is in the same vein as #2305, but for arrays.
This is in the same vein as #2305, but for arrays.