Add TypeWithDict::finalType()

Add function TypeWithDict::finalType(), which is needed by the conditions code for ROOT 6.