This is the second batch of Wconversion changes leading up to supporting large arrays(with indices larger than 2^32).