Switch to dumping to Pickle.

Fixes #21