MAINT: special.diric: fix test failure, add example and broadcasting test.

Example based on IPython notebook of Gregory R. Lee.
Also clean up some unused imports in special/basic.py