fix booleans in swig template