Tentative {virtual_libraries} template support

This should allow the use of {virtual_libraries} in custom column
templates, with good performance, thanks to search caching.