Make it possible to treat strings as arrays.

String variants are implicitly converted to arrays when used as an array. This makes it possible to reference values in them and avoids repeated conversions on repeated accesses.