Discontinuities in Ecosystems and Other Complex Systems