Returns the relative, descendent directory path between this module and other.
Throws if no such path exists.
For example, if module mod1 has path /dir1/mod1.pkl, and module mod2 has path /dir1/dir2/dir3/mod2.pkl,
then mod1.relativePathTo(mod2) will return List("dir2", "dir3").
A common use case is to compute the directory path between a template located at the root of a hierarchy
(say rootModule.pkl) and the currently evaluated module (accessible via the module keyword):
Takes a given structure Any and coerces it into a concrete type Class|TypeAlias.
Facts:
local class Foo { x: Int }
local class Bar { foo: Foo }
local dynamicBar = new Dynamic { foo { x = 1 } }
apply(Bar, dynamicBar) == new Bar { foo = new Foo { x = 1 } }
The output of this module.