Fix [join] only adjust join table types of csv tables
Clean up prettify code