Iso-lines of a grid z (length(x) rows by length(y)
columns, z[i, j] at (x[i], y[j])): corners count as above when
z > level, crossings are linearly interpolated along cell edges (as
grDevices::contourLines), shared edge crossings are computed once,
segments are chained into polylines (closed rings repeat their first
vertex), saddles are resolved by the cell mean and cells with a missing
corner are skipped. Identical to the Python arm morie.fn.isolines.
