Iterate over a copy of the file changes dictionary so we don't change it while we're mutating it.