fix implemtation of MACHINE_RESOURCE_INVENTORY_* to handle non-fungible resources #4141
===VersionHistory:None===