Fix table join (fix #7068)
refresh field names after all layers loaded and encoding change (fix #6840)