fixup wesnoth.require after commit HEAD^

It was implicitly assuming that loadfile takes arguments from the
bottom of the stack.
add a wml unit test for lua dofile