1)
Why does the Torah list Er and Onan, who died in Eretz Kena'an (as the Torah itself states)?
1.
Ramban (to 46:2): This has to do with Gilgul (reincarnation). 1
1
Which the Ramban consistently refers to in vague terms. He also refers to his explanation on 38:8.
2)
Why does the Torah fail to list the sons of Shelah and Zerach?
1.
Targum Yonasan: Because all of their children were born in Egypt.