Fix boolean pickling