Properly implement Base.hash() for custom type

It’s funny you mention that, because I suggested it a few months ago :smiley: .

I’m still learning so I don’t think that I’d be able to produce an accurate example. Perhaps someone with deep knowledge of Julia might update the documentation.