What's the deal with StaticArrays?

If I do this, will Julia be able to remove bounds checks on y[i] despite the loop being on eachindex(x) only? Does that solve my most common eachindex gripe below then?