Fix duplicate checking in ItemType and BlockType