Validate port names, fixes #256
Fix getSource for subgraphs