iOS: Massive CoreGraphics performance increase optimization based on previous optimization on OSX.

- Using SaveState/RestoreState only once per control draw increases the
drawing performance massively.
- Fixed bug in WaveFormScaleControl where the pen would be reset
sometimes on OSX and iOS.