Reliable comparison for numpy.ndarray
numpy.ndarray (as of 1.5.0.dev) fails to compare tuples in array of dtype object, e.g.
>>> import numpy as np; a=np.array([1, (0,1)], dtype=object); print a == (0,1), a[1] == (0,1)
[False False] True
This function checks if dtype is object and just does list comprehension in that case