Direct-sum behavior of modules over one-dimensional rings