Numpy-aware json encoder.
Merge branch 'master' of code.dtg.cl.cam.ac.uk:lib/pyshortcuts