Neither
doc.UpdateXRefs (Constants.FF_XRUI_EVERYTHING);
works in my situation, but I have found out why and will record it here for future generations
Updating of references does not work, when the document is opened from mif file and unsaved as fm. (I somehow thought that opened documents are equal, regardes of their representation on hard drive, clearly there are some exceptions.)
So my above problem is then actualy solved without any need co call UpdateXRefs, now my script saves the opened doc as temporary fm file, closes the mif, opens the temporary fm file (here those strange semi-working references get updated to normal xrefs) and then saves this file as original mif (as I need the mif for further processing outside fm).
Thank you both guys for your suggestions, they nudged me out of circular thinking and helped me to find this out.