XMLExportImport: correctly export booleans as bool on py2
The ad-hoc handling of boolean in protocol 1 was not implemented correctly and they were serialized as integers (0 for False and 1 for True), this fixes the export code and re-export everything