Correct result type of labels() function

Now collection of strings. Fixes #1173.