Possible fix for T60817 (Selection menu for properties does not preselect current item.)
Passing the data behind PointerRNA *ptr as active item. This ends up in overwriting the current value of but->func_arg2. I can't tell whether this will cause problems somewhere else.