Use r\json automatically for write operations.
Make nativeToDatum() consistent to json_encode when it comes to deciding whether to encode a partially associative array as an array vs as an object.
We now use the following logic:
	Arrays that have at least one non-numeric key are encoded as objects.
	All other arrays (i.e. arrays with only numeric keys and empty arrays) are encoded as arrays.