libquery: add optional handling of 'UI' ID pointers.
Handling those through different ways /might/ be needed sometimes, but in most case this is just a nest of issues, since you can easily forget to take them into account.
Note that this should be a 'non-functional' change, as this new behavior is not used anywhere yet.