improve Internal.Matrix.exists (hopefully)
simplify Internal.Array.range function