Add toString() for BuildMemory.Entry

Eases debugging.