[aggResp/tabify/buckets] properly calculate bucket count for array or object buckets