Boxing optimization of Ranges