XML-RPC dumps None to nil instead of bool

issue3981
review6351003
(grafted from 851a0446f64dea53fcee27dce1ea16e6f06b7b46)

--HG--
branch : 2.6
extra : source : 851a0446f64dea53fcee27dce1ea16e6f06b7b46