Add equality method.
Make userdataName a class method in protocol.