When I issue the query
response = client.execute(database, engine, "def output = 1", false);
(more generally, this concerns any integer column contained within the output), then response looks like this:

That is, integer response values seem to be stored as Doubles due to JSON serialization. I guess this is not expected @bradlo?