rewrite convert_tuple in julia

along with an optimization pass that is helpful for it

this is less code, runs faster in basically all cases, and allows
specialized code generation, constant folding, etc. of tuple conversions
Merge branch 'master' of github.com:JuliaLang/julia