Better usage of GetTypeName when serializing DependencyObject.