Include thin walls in general top-level perimeter sorting to get more efficient paths