swarm - add (de)serialization methods to Particle - Issue #13