Improve situation where editing just the root prim of an attachment causes other prims to be set to very far off positions on reattach.

Functionally the same as the patch by tglion in http://opensimulator.org/mantis/view.php?id=5334
However, not yet perfect - after editing just root prim on reattach the position is still wrong, though other prims are not set to far off positions.