Complex dietary polysaccharide modulates gut immune function and microbiota, and promotes protection from autoimmune diabetes.