Detect and error if a port depends on itself somehow

Fixes:		[7b7050353e]
Reported by:	pgj