Improving performance on nested for loops (SparseArrays, LibGEOS)

Feel free to open a PR for making these available to users. I don’t think it was an intentional design for it to remain internal (see e.g. https://github.com/JuliaGeo/LibGEOS.jl/pull/46#issue-273309375), just that we didn’t implement it all the way through back then.