ignore script nodes with type=dojo... when determining script injection point; fixes #15809; !strict
improve expressive efficiency of a few loops; perhaps fix strange IE problem with array.length; fixes #16074; !strict