Fix serialization crash

Version number is set incorrectly, which results in a crash when loading checkpoints in a new instance. Version should be set in the constructor (or possibly with a #define). (Note: test will be submitted with python repo. We still need to figure out C++ tests.)  Issue #13