The best dehydrated meal we take on our trips is a Super Burrito from Tanya's, the local taqueria. We slice it like a loaf of bread and dehydrate it, then re-hydrate and serve it as a casserole.

It would be REALLY hard to take uncooked beans on a backpacking trip for just the reasons you describe.
_________________________
Check our our website: http://www.backpackthesierra.com/

Or just read a good mystery novel set in the Sierra; https://www.amazon.com/Danger-Falling-Rocks-Paul-Wagner/dp/0984884963