[boost][range] - Improve the forwarding of the functor, and provide a work-around for the breaking changes in VC10 for_each.