Improve handling of associative arrays in output.