Extend the label-based Search API to be able to filter by type.
For now, the type is always a single ZID, i.e. Z4, Z6, etc.
Z1 is a special case and means "no filter on type, return anything".
Later we will support generic types, when things will get a bit more complex.