you might want to put in a GFCI outlet at the start of the line. As long as you're replacing everything anyway.
Sounds like it might be a case of reversed polarity on the dock too, or just a case of bad wiring in the boat