Fixed infinite loop with hugChildren in some corner cases.
Fixed bug with connection creation.
Merge branch 'autorouter_port'