Fix for workers dropping messages.

The statistics that are gathered during a distributed query can be
quite large, so we need to increase the limit on the message payload
size.
Added Minimum filter, which finds the smaller of two values.
Proper fix for workers dropping messages.