Port the 'serialisation' example to the current Lambdoc API