Add [Serializable] to fix issue 1818

Apologies if I'm merging into the wrong branch. Readme.md says merge to "dev", but github doesn't show a "dev" branch.