Visit memory references.