Fixes for SWIG 3.0 that potentially breaks user code.
 -- C++ methods that requires a bool now only takes Python bools
    or numpy.bool_
Merge branch 'johanhake/fix-swig-3.0' into next