OK. My bug report still stands, but for different reasons: some parts will get repaired but won't be put back in place no matter what.
I've had that issue a couple times, it is usually caused by the mounting points for the part being too displaced from damage. I'm testing a fix for it that also repairs all the nodes and beams the part connects to, this ensures the part is able to connect but tends to damage other nearby parts.
I'm watching this thread with great interest! Usually, modder with great coding skill and groundbreaking features like your mod will get offer from the devs