Add a 'density' argument to Stat.histogram to use density instead of counts. Fixes #491