Get GeneratorFunction from eval and set name if not exists

Closes #61
Get GeneratorFunction by using Function constructor

issue #61
Style tweaks after merging issue #63.