grains.setval: avoid code duplication

setval calls setvals to avoid duplicating code