operator== and GetTypeHash() proper implementation

lol that is very weird behavior, operator not called.