fix some allocation/free bugs when we put non objects into table...