swarm - fix issue where Particle.to_dict returned nothing - Issue #13