make writedlm work for AbstractVector/Matrix, add corresponding writemime functions