Check for duplicate labels in intermediate types.