#1744 make getElementsByTagName 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.