Add support for dynamic container of local solvers

This allows to have different local solvers in `NonlinearGSStep`.
The feature existed before but was restricted to statically sized
containers. This patch adds support for dynamically sized ones.
4 jobs for feature/nonlinear-gs-dynamic-localsolver in 9 minutes and 47 seconds (queued for 8 seconds)