Adding numpy count_nonzero & minor template fix

Have i missed something?
Oh god, no implict conversion to ``bool`` for ``std::complex`` !
My previous reply makes it clear I see a huge difference w/ and w/o bool specialization (373 usec vs. 845 usec). Your PR LGTM, @joker-eph ?