I fixded it!

Turns out I was passing new rocket stages by reference rather than
deep-copying them, which is why it kept failing. Fixed that.