Fix to SUNDIALS type detection