getMatchLabels function

Gets labels of annotations on a given layer, identified by given match IDs