Re-implemented set_reference_stateD

Closes https://github.com/CoolProp/CoolProp/issues/190

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>