When Homer daydreams about his funeral in The Graveyard of the Future, a tombstone with the name Tamzarian on it can be seen. Tamzarian is Principal Skinner's "real" last name from "The Principal and the Pauper" (even though a court order was stated that Principal Skinner's real last name could never be mentioned again under penalty of torture).
The episode title is an allusion to Thomas Edison's nickname, "the Wizard of Menlo Park".
The two black birds (actually crows) at Homer's imagined funeral are Heckle and Jeckle.
Other cultural references are:
White Heat: when running on a globe, Bart exclaims "Top of the world, Ma!", a reference to the second to last line of White Heat, "Made it, Ma! Top of the world!";