Save the state of a DynamicalSystem. The output object cannot be used as an initialised DynamicalSystem since connectivity and group information is not copied to save memory. Only scalar members and the ds%atoms object (minus ds%atoms%connect) are copied. The current state of the random number generator is also saved.