Remove duplicate hashtable flattening logic
Fix a few bugs in metadata list handling
Zeiss LSM: use metadata lists in a few more places