Optimize unpack for Array type.