Ensure that array buffer is stringified and parsed correctly and log errors when data becomes corrupt - #219