JLD: add `rootmodule`, and use it in tests of module paths