add unit test to catch serialization bug reported by Marco Boninsegni
fix serialization bug reported by Marco Boninsegni
Merge pull request #592 from goodfeli/fix_monitor

Fix monitor serialization