Allow arbitrary cast of DynamicDictionaryValue

Casting of DynamicDictionaryValue was coded to fail when casting to a
reference type. This is fixed.
Merge pull request #1192 from MattsGitCode/dynamicdictionaryvalue-arbitrarycast

Allow arbitrary cast of DynamicDictionaryValue