Enhance unit test to check TypeWithDict::byName
Merge pull request #2381 from wmtan/EnhanceDictionaryUnitTests

DataFormats -- Enhance unit test to check TypeWithDict::byName