swarm - Swarm: implement to_dict, from_dict - Issue #13