As the standard does not enforce the reference integer to be unique (I recalled we had some discussion about that).
Should we use a different key logic for the vars dictionary in Fmi2Slave?
May be something like typename_reference to be quickly built in the setter and getter.