Hi,
You're right — the W108 wiring around the wiper/washer circuit is indeed very close to the Pagoda (W113), but there are a few small differences depending on production year and equipment.
On your 5-pin foot switch:
15/54 – is the 12 V ignition-switched feed.
Washer pump contacts – activate the washer motor when the pedal is pressed lightly.
Wiper contacts – connect when you press harder, sending power to the wiper relay or motor.
31a / 31b – these are not permanent grounds; they are return paths through the switch body, used to complete the circuit for the washer pump and/or wiper relay coil.
Typically:
31a goes to the wiper motor’s park switch or relay (ground control).
31b may be tied to chassis ground to ensure proper switching function or to the washer pump ground (depending on version).
In many restored cars, people simply bridge 31b to chassis ground and connect 31a to the wiper park switch — that reproduces the correct operation.