Fixed incorrect list access in DataRef's name().

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