Also deal with deserialisation of BytesDocuments with just a format (although this is not used client side)