Fixes nested array dump using `String::toString()`.