Add TypeWithDict::finalType()
Merge pull request #1779 from wmtan/AddFinalType

Add TypeWithDict::finalType()