Implement __eq__() and __hash__() for unpacked values

Partially implements #1. Closes #5.