Resolve feature group prototypes when checking port directions in port
connections - fixes #357