Added work around for bug 155 in RoboVM which may cause ClassCastExceptions to be thrown by the get-methods in IOSPreferences.
Merge pull request #583 from ntherning/ios-preferences-fix

Fix for bug in RoboVM which may cause ClassCastException in IOSPreferences