MDEV-6109: EXPLAIN JSON

Add pretty-printing of possible_keys column.
EXPLAIN FORMAT=JSON: produce the 'ref' column.
EXPLAIN FORMAT=JSON: produce used_key_parts, JSON-ish output for index_merge.