Working on saving simulation state, may be limited by ode4j now.
Correcting type-checking functions in swarm examples