Fixed a bug affecting persistence of non-proplist sumo_docs.

When a client implements a sumo_doc behaviour, the sumo_sleep and sumo_wakeup functions are meant to translate between sumo_db's proplist representation of a document, and the client's representation. 
This fixes a bug when the client's representation is not a proplist itself.