make sure (X=Y) always yields the value of Y. closes #2913
Merge branch 'master' of github.com:JuliaLang/julia