Check for duplicate definition names.