Fixed NegativeArraySizeException for data larger than 2GB / 3.