minor refactor: improved localText() for groovy.util.Nodes