Allow connecting a net to itself, fixed typo and be more explicit on error.