Not sure if it's a bug, because I don't know exactly how C2 sets UID for sprites - but it looks like one.
Have two same sprite instances, text object set to show UID and mouse object.
In layout preview it shows my UIDs as 5 and 6 of that sprite but after exporting my project it shows as 10 and 11.