[~TASK] FLOW3 (Persistence): Reset repositories after persistAll
Currently a call to persistAll inside a request will not reset
the repositories. Strange things with added and removed objects
could happen. Additionally it's impossible to write some
functional tests that need to have a clean state.