pool: Make rep ls output more efficient

Changed some internal data structure to reduce resource needs.

Ticket: 8203
Acked-by:
Target: master, 2.6, 2.7
Require-book: no
Require-notes: no
Patch: http://rb.dcache.org/r/<id>/