[geometry] Use capture by value for simple types and lambdas

5 jobs for !2893 with feature/2d-2d-in-3d-intersections
latest merge request