bugfix: when a Lua line comment was used in the last line of the inlined Lua code chunk, a bogus Lua syntax error would be thrown.
minor refactoring in the closure factory.
minor cleanup in a recently added test case.