Expose a prettify(query) method in the ExecutionEngine API.

Make sure ASSERT does not introduce a line break in prettification.