Added StructurallyEquals to ConnectionId and beefed up tests.