Add Serialize instances for DefaultMap and Corpus types.

The code builds and passes tests on my machine.