CURRENT moves to schema 3 with an explicit previous file name. Restore
accepts schemas 1-3 (migrating 2), validates the recorded name as a
plain file name and recovers from it when the current generation is
missing. Registered index tests cover the migration, recovery through
a renamed previous generation and rejection of an escaping name.