HPCC-11666 Make Queries list filterable by referenced library

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Similarly needs to replace, as does the call below.