Optimize ArrayList internal array allocation for exact size.