Correct result type of labels() function

Now collection of strings. Fixes #1173.
Merge pull request #1174 from cleishm/labels_type_fix

Correct result type of labels() function