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
21 jobs for feat/bt-py3
in 0 seconds, using 0 compute credits, and was queued for 0 seconds