Simpsons and Freudian Dream Theory

S25Ep18 Summary

It is unclear how much of this episode is Bart's dream and how much is his future reality.
The episode begins with Homer's death.  He overeats and has a heart attack.  Professor Fink clones him, and Homer clones continue to die from overeating or having stupid accidents, every time being replaced by a new clone.  The family ages as Homer clones keep living and dying.  At every funeral Moe tries to console and hit on Marge.  Fink finally explains to an aging Marge and grown-up Bart and Lisa that Homer has used up all his clones, calling him a "fat, fat, fat pig."  Homer has been downloaded onto a flash drive and is a face on a monitor.  Marge laments that now she's married to a face on a screen.
Milhouse is in an unhappy marriage with Lisa, while Lisa does charity work with zombies.  Marge sends Homer to live with Bart, because Bart has become slovenly and unemployed.  He is separated from his children's mother, and talks to her insect-like alien boyfriend as he drops off his kids.  He asks for fatherly wisdom from Homer, who is frozen while loading on the screen.  Bart attempts to pick up women and fails, before renting an adult skateboard at a kiosk for people who used to be cool.  A billboard addresses him by name in flashing letters, and tells him to come in for a quick treatment to get over his divorce.  He is given an immediate shock and is over his ex-wife in seconds.  
Bart has a long string of affairs with many beautiful women, often while his father watches from the screensaver.  He even wakes up after a night with Krusty and many clowns, along with 2 women.  Lisa enjoys her marriage with Milhouse after he becomes a zombie.  Bart tells his mother that Homer misses him, and Homer gets a robot body.  His "junk" is shipped separately in an enormous, long box.  Bart's ex tells him that she and her boyfriend broke up, and they go out for dinner.  Homer's body goes to the bar and drinks while his head stays behind.  Bart gets back together with his ex and gets a better job, Homer becomes a skeleton and attempts to win Marge back, and Lisa tries to keep her husband a zombie.  Bart fights with his ex and goes to the bar.  There he finds Lisa and Marge drinking.  Marge is drunk and tells them that they must stick to the decisions they make, and then joins Homer as a videogame.  Bart realizes that he should stick by his decision to divorce his wife.  
He then wakes up in the divorce-treatment center, and the doctor explains that everything was a dream designed to treat his obsession, and that he is now cured.  In "real" life, Lisa is married to zombie Milhouse, because there is no cure for zombie-ism, and Marge is still alive with a new, upgraded Homer.
                                                                                                                                                                                             analysis