SES-1726 : Switch to native JSON booleans for boolean results

Also explicitly throw exception if endQueryResult is called without
startQueryResult being called, as it otherwise generates an unuseful
Jackson error