Fixes for SWIG 3.0 that potentially breaks user code.
 -- C++ methods that requires a bool now only takes Python bools
    or numpy.bool_
Extend typemap for bool also accept numpy arrays of type bool of size 1.