Fix Stat.contour with non-floats. Fixes #432.