Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
Issue #290. This currently fails, to draw attention to the issue.