mutate array in-place to raise it to the power of a scalar value