Use free function hasDictionary()
Merge pull request #1932 from wmtan/FixtestDataFormatsFWLite

Use free function hasDictionary()