Fixed incorrect slice in DataRef's name() function.

The slice was misplaced as [:-1] instead of [-1:], causing it to return a list of tokens for all nodes EXCEPT the last one.