Correctly write matrices and the cura version metadata tag
Correctly write matrices and the cura version metadata tag

Fixes an issue with invalid 3MF files

ynotstartups/Wanhao,hmflash/Cura,Curahelper/Cura,hmflash/Cura,fieldOfView/Cura,Curahelper/Cura,ynotstartups/Wanhao,fieldOfView/Cura