osmorc: check for redundant ref