Fix invalid read in nukesort. More test for lookup tables.