Serialization of cloned code refs.

Doesn't yet serialize the context, but this is the first half of the
closure serialization and passes a bunch of the 03-closure.t tests.