ENH: nearWallDist: handle changing numbers of patches