Fix and test var edge cases for zero and one-element iterables
Fix and test type stability of var
Merge pull request #7502 from JuliaLang/sjk/var_edge_cases

Fix and test var type stability and edge cases for zero and one-element iterables