Silverlight fixes

- Replaces for all platforms the usage of legacy collections (ArrayList,
Hashtables, and ListDictionary) by their generic and recommanded
equivalents.
- Fixes calls which are unsupported in Silverlight.