Bug 937697 - Simplify some BoundsCheckRange code. r=bhackett, a=bajaj