Misc fizes.
Fix for shared memory loot: both the inconsistent tables and the not loading of tables with no items
Merge branch 'master' into shared_mem