Add support for batch processing in actions

When executing a queryset, in case of most actions (eg: where, filter
etc), it is possible and more efficient to run the processor on a merged
entry. This results in a single iteration for an action type.

It will be used in implementations of filter/where.