Fix assigning HashEntry.type

isfile() returns True for valid symlinks.