fix Issue 12153 - Ternary operator on static array lvalues creates copy