refs: catch cases where the ref type has changed If the type of the on-disk reference has changed, the old value comparison should fail.