Bug 937697 - Simplify some BoundsCheckRange code. r=bhackett

--HG--
extra : rebase_source : 719258647e87d0bf52636e5d23085e2f1f7e2ec5