#1744 make getElementsByName return a NodeList

I haven't been able to test it yet (need to run a full build), but it looks like it should work.