Sync FSX with FSFS: Manually port revisions r1605444, r1606554 and r160674 from libsvn_fs_fs. These patches switch writing revision zero from using a full template to a generating the index sections.