Fix inverted lexicographic topns and topns with dim extraction dimension specs