Document serialization uses field order to ensure a strict order is set (#296)