Support varargs in concat() in StatefulArray, fixes #16629.