an attempt at useful deprecation warnings. fixes #4546
Merge branch 'master' of github.com:JuliaLang/julia