widl: Fix detection of non-pointer context handles.