Incorporated fix for IDictionaryEnumerator bug on some mobile devices. See http://stackoverflow.com/questions/22503710