Initial experimental support for generators in execution modules

This is the first work on getting #7046 going