Return the labels that are referenced in a shape expression This method can use useful to detect if a shape doesn't refer to non-existing labels