Duality for weakly co-Hopfian and generalized Hopfin modules