Generators: remove single instance restriction and handle generators inside closures