Add back the ability to register a raw function as a Generator
Merge pull request #430 from SBoudrias/raw-generator

Add back the ability to register a raw function as a Generator (Fix #427)