Polarization transfer in hyperon decays and its effect in relativistic nuclear collisions