modules.grains: setvals

Set multiple grains at once
grains.setval: avoid code duplication

setval calls setvals to avoid duplicating code
Merge pull request #11547 from ze42/dev_grains_setvals

modules.grains: setvals