json: Allow Position to be sent to a stream.
test: Add mechanism for checking exceptions.