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 8 minutes and 13 seconds (queued for 7 seconds)