Write arbitrary objects to SD card