Added robust section order saving and tests.