Added `restore_transition` property to document and mail class.

The `restore_transition` was wrongly dropped during interactive rebasing the PR #676. This should fix the failing tests.

@lukasgraf please have a look.