Anharmonic and standing dynamo waves: theory and observation of stellar magnetic activity