Added missing 'iterator' method to generators
Refactored try/catch backend code to fix some

broken use cases
Fixed generator function bugs for 'close'/'throw'