bugfixes in pathdata and light path expression code