A complementary EPT comment:
Just add, to that Finninsh (but not quite finished) theory, the fact (or
obvious possibility) that it may also be a selective advantage if lifetime
opportunities (and positive or "opportunity type" evolutionary pressures)
are likewise "rehearsed" by dreaming.
P