Fix inconsistency of lexcmp between scalars and single element arrays
Merge pull request #5163 from JuliaLang/sjk/lexcmp

Fix inconsistency of lexcmp between scalars and single element arrays