I noticed that the field BundleContents of ItemInstance is returning the ItemId for items, while the field BundleParent of ItemInstance is returning the ItemInstanceId. I am wondering if this is correct? The documentation for ItemInstance while vague gives the impression this should be the other way around.