Mac: Several bug fixes to WaveFormCacheService, WaveFormRenderingService and WaveFormControl.