fix Issue 12153 - Ternary operator on static array lvalues creates copy
Merge pull request #3285 from 9rnsr/fix12153

Issue 12153 - Ternary operator on static array lvalues creates copy