Fix precision-induced boundscheck failures
Merge pull request #245 from JuliaMath/teh/fix_#244 Avoid numerical-precision failures of bounds checking (fixes #244)
Merge pull request #245 from JuliaMath/teh/fix_#244 Avoid numerical-precision failures of bounds checking (fixes #244)