Fixes digitize

Add digitize() to fixes for old bumpy versions @agramfort @Eric89GXL
Is this what they actually do in `numpy`? If not, you might want to at least note that in the docstring above, if not copy directly from `numpy`. The next person to need `digitize` may (rightly) assume that whatever is in here has equivalent functionality.