Baby chicks shouldn't have uncooked rice because their digestive systems are immature, and they may not be able to get enough grit to digest them. But other birds, as long as they eat angular stones for their gizzards, can eat uncooked rice, and they won't die. Dried beans would be pretty hard to digest for any bird or beast and shouldn't be fed. Sprouted beans are okay with grit.
The chicks in this thread didn't get any grit over the last two weeks so that's why they're now in trouble from eating the uncooked rice.