Crash with -serialize

Yes I think this is the correct solution (but haven't looked closely).

The TranslationUnit passed in to Initialize should be spec'd to only
be valid between Initialize and Finalize.

Yes I think this is the correct solution (but haven't looked closely).

The TranslationUnit passed in to Initialize should be spec'd to only
be valid between Initialize and Finalize.

Patch.

serialize.patch (1.77 KB)

Looks good. Please apply.