using 'yield' automatically turns functions into generators

See discussion https://github.com/jashkenas/coffee-script/pull/3078
This is nowhere near sufficient to detect `yield` in the body. This assumes the function has a completely flat structure. `f (yield 0), (yield 1)` will fail the test.