Extend typemap for bool also accept numpy arrays of type bool of size 1.
Merge branch 'johanhake/fix-swig-3.0' into next