Nevermind, it was me :/ Damnit, I should learn how to think..
(I checked the HandleIDType instead of the HandleID, therefor I got the itemID of the item twice in my testmap, and I thought it would be an bug with the items having the same handleID when they are preplaced.)
setiO.iType = GetItemTypeId(i)
and debugcallBJDebugMsg("!AnaItemUtilities] [NOTICE] {inventory} <addItem> Unit got an item with ID " + I2S(iO.iType))
Of course both items have the same ItemTypeId, they are the same item type..
Just because you do something stupid doesn't mean you should edit out your first post. Someone else might've learned something from the thread in the future, but now that you've edited it out, no one can learn anything from it.