Changed scope during serialization. Fixes #13
Merge pull request #14 from eicca/master

Changed scope during serialization. Fixes #13