Fix issue 13535 byCodeUnit doesn't satisfy hasSlicing
Merge pull request #2563 from sinkuu/bycodeunit_slice

Fix issue 13535 byCodeUnit doesn't satisfy hasSlicing