Optimization of array initializer when assigning a single value