Fix String#slice! raise TypeError or return invalid value.
Merge pull request #2649 from tmtm/fix-string-slice

Fix String#slice! raise TypeError or return invalid value.