I don't think they had anything to do with the Bow Rail...the bases for the rail typically had 3 screw holes, and in the middle of the gunnel...not out at the edge. Yes, to repair them correctly you'll have to get the rub rail out of the way.
Are there similar holes BELOW the rub rail at the same locations?