Fix for reconnect-2field
Modifying checks for CVODE and IDA types