Fixed varTables lookup, fixed d.varTables structure, fixed categorical data saving