mutate array in-place to get bitwise or against a scalar value