Use Array.MaxArrayLength in ArrayList (dotnet/coreclr#25530)