fixed segfault in classy when multiple cosmologies called at once