Support implicit type promotion for bool array sum

As reported by Ian.