functors: follow in signatures too
fixed lookup of parent modules

lookup should be done on the first path element only
Load all modules in one pass

otherwise, lookup of parent modules could fail