Add support to ZUNIONSTORE/ZINTERSTORE for COUNT and AVG aggregate functions.