Formatting; add handling of serialisation/deserialisation of NULL to None; add partial implementation of unserialize() function