Fix for bug in RoboVM which may cause ClassCastException in IOSPreferences

With this fix and the NSDictionary/NSMutableDictionary fixes (https://github.com/robovm/robovm/issues/154) which will be in the next RoboVM nightly IOSPreferences seems to work as expected (at least pax-britannica doesn't crash when turning on sound).