Changed the way serialization is done for Azure and Filesystem repositories.