the ULN2004 has clamping diodes built into it. I have not put diodes across the relays, and as I've said, the system works without glitch until I apply power to the motors.

I'll think about where I could put a diode...
j