cmd/gc: clean up string index errors

Unify with array/slice errors, which were already good.

Fixes issue 4232.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7271046