Pipe wires persistence between runs: update

Slight modification. State is stored only for gates, as ordinary pipes can't generate signal by themselves.
Redstone broadcast is left persistent - should allow to create two-gate memory on redstone signal.

Sorry for not updating existing PR.