Another excellent example is Futurama, which not only has many mat, science, and sci-fi in-jokes, but also has a Babylon 5-style "plot arc" that ties several widely-spaced episodes together.