Replace Ident with Name in for loops

cc #6993