StaticArrays compilation performance bug

Related issue: https://github.com/JuliaLang/julia/issues/35547