Inplace renaming for generators and enumerators