(Serialization) Bug fixes, Refactors and Features

Lots of stuff! Please see the commit messages for details. I didn't test for regression with the noted emac-jedi issue.