One-dimensional configuration sums in vertex models and affine Lie algebra characters