This basically lets the UI use the constraint or modifier icon, whenever refering to constraints/modifiers via RNA pointers. Used by D15606, so that the "Modifiers" tree element to group the individual modifiers together gets the right icon without hardcoded handling.