improve type of collect, add eltype() for EachLine. closes #6114