Fix equality bug.
- Links should not be considered equal just because their in and out types are
- Adjust tests to compensate