dart backend: fixed string slice and reverse "a[::-1]"