Change to const reference name instead of copy meant the name was being update upon rename and the old name was not being printed in the warning message. Fixed by reordering to print the warning message before updating the subcomponent name.
Change to const reference name instead of copy meant the name was being update upon rename and the old name was not being printed in the warning message. Fixed by reordering to print the warning message before updating the subcomponent name.

opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core