Tests for minimise/normalise with !-boxes; fix for minimise

Previously, minimise would discard all the wire-vertices on an internal
wire, even if there were !-boxes containing only those vertices.