handle node lists, added tests

not sure if you want to support this, but i also think its pretty annoying that node lists dont have indexof or any of the array methods, so it would be helpful to have it here.

either way, added tests. i can re-pull with them without node list if you dont want it too