Do not always write id on export
Fix dataset length including all stored files in the count
Fix dataset tests for export
Fix insert for multiple files in the same dataset
Update index tests for insert
Update index tests for select