Fix tests broken by dirstate caching sha1 and stat values.
Change _iter_changes so that it call update_entry() at the beginning.
this gives us a chance to have files change kind, and still get
the sha1 value from the cache rather than re-reading the file.
Some small updates for executable bits on win32.