Tweak static if in Array

Probably changes nothing in the generated code, but can have an impact of attribute inference. I'm trying to get this to be `@nogc`
Merge pull request #2498 from monarchdodra/ArrayStaticIf

Tweak static if in Array