Add repro case for #8
Fix linking of the tables in memory DL list.

Fixes #8