MAINT: make binary_scalar2 static and put __m128i into a template
ENH: vectorize boolean reductions

Improves performance by a factor of 5 to 10 depending on the cpu.
These operations currently can't be autovectorized by gcc 4.8.
Merge pull request #3466 from juliantaylor/vectorize-bool

vectorize boolean reductions