Fixed a memory leak in tagview_page_list_tags(). Minor other refactorings.