Fixes to ensure that share_orbit works correctly for complex words.