FIX: matplotlib 1.1.x compatibility

plt.hist2d is only avaialble in newer matplotlib versions, so:
* replace stat_bin2d with a dummy version on such systems, and
* only run the unittests if plt.hist2d is available.