This commit adds a new option flag to the lib_query foreach_id code, which will make deprecated ID pointers to be processed as well. NOTE: Currently there is no report to the callbakcs about the fact that it is processing a deprecated ID. This can be easily added later if it becomes necessary. Part of implementing #105134: Removal of readfile's lib_link & expand code.