What the OP wants, not in their suggested solution but in what would actually solve their problem, is smoother collision mechanics. We need them for ships so our internal power reactors don't accidentally get undocked due to some bug and crash the server from the collision calculations (EE had a problem with someone's reactors lagging up the server recently. Poor guy might not have that ship anymore, you'd have to ask the admins.), we need them for planets so we can bump planets with our ships without getting you banned/your ship deleted for causing immense lag...
So in his problem, an object in a tight tube logically couldn't rotate or move in any direction except along that tube, until it exits. But in game, that tight space would instantly lead to ungodly collision spam that can wreck servers because objects that undock immediately begin moving, and colliding. Playing safe is cool, but a built-in safety net is even cooler. Adjusting the collision boxes themselves probably won't help.
What if, for a recently undocked object it is forced to maintain the orientation it had to its parent, moving in relation to that parent, with collisions disabled, until it exits whatever tiny cubby it's trapped in.
It's a pain in the ass because the game would, before undocking the object, have to decide what space is available on all sides of the object, and based on what space is available, determine on what axes it can rotate and move, and at what point this safety function can be disabled and collisions restored to normal for that object.
Honestly, i wouldn't mind if an object was forced to wait a period of time before docking/undocking so the game can take the time to calculate collisions without slowing down the server, or refuse to undock if there's no way the object can safely undock and exit. If the calculations are strung out over 30s or something, the impact would be less palpable than if the server tried to process the entire thing at once.
I mean, logically, for someone who can't program a "Hello world!" event...
I am TOTALLY pro-improved collision mechanics. Anything that gives server admins less headaches and me less chance of getting my ship deleted without totally wrecking the game mechanics is good.