[doc] Improve documentation of deprecated methods in PersistentContainer.

Replace outdated documentation by a copydoc.
Replace update() by resize() in persistentcontainertest.
Add deprecated messages.