Fix leak when setting dynamic property on generator
Don't allow dynamic properties on generators Noticed this because we leak those properties in GC. This was never intended to be allowed.