BF: fix test for not None elements in array
BF: fix test for not None elements in array

Numpy > 1.12 will raise an error for equality of an array to None; use
numpy vectorize to do the same comparison.

FrancoisRheaultUS/dipy,nilgoyyou/dipy,nilgoyyou/dipy,FrancoisRheaultUS/dipy