Convert any inventory item into a mesh, bring back InventoryItem::getImageRay(), some const-correctness fixes