Fixed major bug in how the lookup table is reallocated while adding columns. Dunno how it worked before!