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
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner2

02:31:59

passed ERP5.UnitTest-TestRunner2

05:40:44

passed ERP5.CodingStyleTest-TestRunner2

00:49:19

passed ERP5.CodingStyleTest-TestRunner2

01:40:22

passed ERP5.CodingStyleTest-TestRunner2

01:23:54

passed ERP5.CodingStyleTest-TestRunner2

01:38:16

passed ERP5.CodingStyleTest-TestRunner2

01:43:36

passed ERP5.CodingStyleTest-TestRunner2

02:28:08

passed ERP5.CodingStyleTest-TestRunner2

02:10:50

passed ERP5.CodingStyleTest-TestRunner2

01:30:35

passed ERP5.CodingStyleTest-TestRunner2

01:53:02

failed ERP5.UnitTest-TestRunner2

02:59:51

failed ERP5.UnitTest-TestRunner2

03:17:12

failed ERP5.UnitTest-TestRunner2

01:17:41

failed ERP5.UnitTest-TestRunner2

02:42:11

passed ERP5.UnitTest-TestRunner2

03:10:05

failed ERP5.UnitTest-TestRunner2

01:43:25

passed ERP5.UnitTest-TestRunner2

03:02:11

passed ERP5.UnitTest-TestRunner2

04:18:14

failed ERP5.UnitTest-TestRunner2

04:06:56

failed ERP5.UnitTest-TestRunner2

03:23:34