Various fixes for bugs about salted table.

This is work in progress for all the fixes on salted table. More tests would follow once all existing end-2-end tests are passing on salted table too.