Function declaration inside generators should be hoisted to the top scope. Fixes #85