Corrected issue in exitFunctionDefinition where parameterCount was
derived incorrectly.
Added compilation support for generators (functions with yield
statements).

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>