persist: Add a setdefault() method for a very common case
Make use of persist->setdefault