"Undo function after applying Melodyne to an audio clip crashed Sonar. I could not repro this, though."
Do you remember if you undid quickly before melodyne finished its analysis? There is a bug in Melodyne where it doesn't like to be released before analysis is complete in some rare cases which has been reported to their development.
Anyway if you run into this please send a bug report with a crash dump file so that we can forward this info.