Fix references to data via refcode.