Added toSet methods to traversals and added a v(string, string) method as well.

Change-Id: Iee7b90b938a4452b63178e4e34c38c59d0197a48