Adjust array/scalar promotion to handle rationals and complex numbers.
Merge pull request #6543 from JuliaLang/anj/promote

Adjust array/scalar promotion to handle rationals and complex numbers.