fix #3240, delay some pointerref and pointerset errors
Merge branch 'master' of github.com:JuliaLang/julia