Make jd_set_empty_string take length rather than buffer size.
Implement jd_reverse.

Reverses strings and arrays (in the predictable way) and hashes (in the
perl way, swapping keys and values). Everything else is passed through
unchanged.
Allow inplace jd_reverse.