Fix Trac #2723: keep track of record field names in the renamer