Take some BPListRecords using absolute addressing and eliminate
all duplicate records, compact the table and update all internal
references.

Does not necessarily yield a totally deduplicated table; The process
of interning can introduce duplicate records (because it alters arrays,
dicts and sets). All other node types will be deduplicated in one pass,
though, which is usually sufficient.