Workaround for previous "encoding/gob" versions.

Before Go 1.3 the gob encoder wasn't happy about function pointers. Now it
simply ignores them, but we still need to support all Go 1.x versions.