Various fixes
- Fixed an error in solveDistributed where the local size on rank 0 is printed, instead of the global size
- Fixed missing casts from unsigned to signed types
- Replaced a lambda with structured binding by an explicit function object for compatibility reasons.