Make the argument of json_deep_copy() const

Fixes #126.