Chaos in Non-Abelian Gauge Fields, Gravity, and Cosmology