Exports: move the hardcoded type from template to view.
API: fix API to search to only look in prefLabel.