better codegen for getfield on type objects (#3938)
Merge branch 'master' of github.com:JuliaLang/julia