I like this idea, however I would much prefer it to be a more generic "combine two entities into one" system rather than some complex one.
That way it can also be used on stations and I do not see the need for a shipyard to be involved (they are already quite buggy, please don't make me use them...