Fix a bug scanning through a memory-mapped file with overflow items (which is what LSM merges are doing all the time).

refs #701
Comment: explain why we copy the prefix before growing the buffer.