Install an isolation transformer and all this becomes moot anyway. Plus, you'll never have to worry about ELCI dock power being snooty about your inverter phase sync again.
I moor in a freshwater marina which has older (non-ELCI/non-GFI) AC power. That can be a very dangerous situation, particularly where old boats with old, jury-rigged wiring are involved. The marina requires bi-annual current leak testing of every vessel using a system just like Insequent describes above. Any vessel which fails the test is disconnected from AC and cannot reconnect until it passes the test. That's the only way the marina can keep their insurance.
Because I have an isolation transformer, this is a non-issue for me. There is no measurable current leakage on my boat, so the testing is a pro-forma exercise in my case. But last year a boat near me failed with more than a full amp of measured leakage. No bueno. Were my anodes dissolving away because of that? Absolutely not. But if anybody had jumped in the water around there, it would have been a very bad situation.