Electrolytic device structurally associated with spark gap