Update CI to ensure compiler warnings are run with correct image
This MR ensures that compiler warnings jobs are run in the debian:10-slim image, otherwise they are run with whatever default image is selected on the runner (and e.g. alpine images do not support grep --color which causes non-useful errors). It also fixes a missed num_elements() from the coupled solver.
Edited by Dave Moxey