"Grains" usually refers to cereal grains. Everything you listed except for oats is typically classified as a legume or a pulse, not a grain.
Granted, nobody has called a peanut a grain, but thinking about it, i don't really see why not to. But a pulse?