OM-214: Cursors should implement IHash

Use the underlying value for the hash code so that cursors can be used
sensibly as associative collection keys.