Grains gain, amid ideas of end of commodity rout