On the cancellation of modules in direct sums over dedekind domains