Use a raw pointer to identify an item_reference.

Used when we need to determine whether an item_reference has been
invalidated by item processing side effects, it's safe to compare
invalidated pointers to each other, iterators not so much.