Remove core.TreeEntry.Type field and correct core.TreeEntry's disk format