Handle converison of pair/2 types to/from JSON.

src/json.marshal.m:
src/json.unmarshal.m:
	AS above.