Refactor Grib save handling of grid templates, for clarity.

These tests are all a bit "mocky". (And the same applies to the tests for template 1.) Have you considered using real cubes, coordinates, etc. instead? Would that make it easier to read and see the wood for the trees?