Check local array count to avoid divide by zero
Added group number in histogram + reduce histogram on fetch
Fix inegal test to use real histogram size