I agree with that idea. I just don't have near the skills to build a lightweight generator, and the current ones avaliable are a bit too big for typical bikes, but maybe ok for something larger, like a pedicab built for that kind of weight.
But to just strap onto a normal bike, 30 pounds of battery or any cargo is about the max comfort level, and two 48v 15 ah lifepo4's takes you further than most folks butts can stand. I've really enjoyed having that kind of range when I want it, but mostly just carry one, and have about 25 mile range carrying 15 pounds.
One really appealing thing about the generator idea is to be able to just look for a cup of gas instead of a plug, or ride in places with no plugs at all for more than 60-80 miles. Something in the 10 pound range would be great, and carry 5 more pounds of gas. Small enough, it could just make a low purring sound that doesn't annoy. Even if it just put out normal charger amps, say 100 watts, it would still extend range, and charge you anywhere. Riding hypermile style, your draw may be only 200 watts, so that 25 mile range ping would double.