addVar() & addLoc() robust to colnames changes by user