Compatibility with traceur

The generator functions that traceur creates aren't really generators, they're just plain functions. The check `this.fn.constructor.name === 'GeneratorFunction'` doesn't work. This change makes it work even for them. Sure it's not as nice (3 lines more) but I think it's worth it.