Support histogram aggregation in the native client, references #100