[FIX #540] ignore connections to inner modules of containers
Does this commit exclude only internal connection or also connection to itself? ... e.g. if a module has multiple inputs and one output, it could be desired to have a loop connection
It excludes connections to modules that are not in the normal module list. So it should only exclude internal connections.