Fix table join (fix #7068)
refresh field names after all layers loaded and encoding change (fix #6840)
Fix broken compatibility of table join (project file) (fix #7068)
Merge pull request #452 from minorua/tablejoin

Some fixes for table join. Merged for wider testing.