test for #127855 - Slowdown in m//g on COW strings of certain lengths