Use instanceof self if possible
Merge pull request #10 from DataValues/equals

Use instanceof self if possible