Fix a potential overflow in the inverse with big blocks (size >= 1<<24) and very
skewed distributions (at least 1 bucket over 1>>24).
Fix regression due to incorrect parenthesis position.
Code maintenance: misc minor updates.