char-at bounds (#340)
string lib fixes for #339 and #338