Attempt to solve isequal vs. == bug

Is this enough to solve #70?
Merge pull request #71 from brk00/master

Attempt to solve isequal vs. == bug