Add comment for modify third-party code.
Add GetVariantType functions, Fix compile warning in UI.cpp.