Added auto-serialisation when storing raw JSON, fixed bug with storage.clear()