Fix equality checks with unwrapped objects

Previous behavior: unwrapped comparison would raise an exception.

New behavior: unwrapped comparison returns false (unequal).