convert all collections to PersistentCollections on flush