Added tests of (de)serialization.
Removed init_globals() call. Globals are passed as parameter to deserialize
Package version updated to reflect changes in API.