Made simulation tasks serializable again (required for JPPF)