Add kind_changed files to commits

Previously, a file that changed kind was lost from the commit history. For
example if a file that is a symlink was changed to a regular file containing the
contents of its target or vise-versa, then this change was lost.