fixes to new I/O code
Merge branch 'master' of github.com:JuliaLang/julia