Fix broken histogram2d statistic. Fixes #404.