Update libreg to initialise openloop reference when reg mode changes