Fix state preservation and restoration on iPad.

Needed to save the detail view controller. Might as well save both, no harm
done.

As a bonus, I'd forgotten to clear the split view controller when destroying
the root view controller stack.