better behavior for float(array) and complex(array). fixes #6422

also add a few inbounds declarations
Merge branch 'master' of github.com:JuliaLang/julia