Hello, Teo.
Thank you so much for yout post. I'm glad you spotted the mistake; I never reread my own post so I couldn't have possibly found out that I "slipped" there. You are 100% right, in "Mary made Tom a cake" "Tom" is the indirect object and "a cake" the direct object".
Honestly, I cannot...