As per the poster's agreement to accept cases of transgender teva, nature, I will quote a couple of sources concerning Yosef and Dina.
The Pirush HaRadal on the Pirkei Drav Eliezer chapter 38 #4 says that Dina who was switched from a male to a female through Leah's prayers retained some of her male nature and that's what led her to leave the house and go outside.
This same idea of the aftereffects of the prayer for gender switching is mentioned by Reb Yaakov Kaminetsky in his Emes Liyaakov in parshas Vayeitzei chapter 30 verse 21. He quotes Rashi that Leah prayed to have her fetus become a female and adds but they did not change completely, for we find Yosef fixing his hair, 37 2, 39 6. And we find Dina being someone who goes out, 34 1.
I'm pretty sure the Shlah writes something similar, But I don't know where offhand.