patch, slope compatibility with closed nodes

node_patches now ignores patches where one of the nodes in the patch is
closed.
This means when node_slopes() is used, it will only look at open node
neighbours when determining slopes - previously, slopes could “feel”
the influence of closed neighbours.