simplified the serialize instances for DefaultMap and Corpus with Generics; added NFData instances