Make comparison function (gt, ge, ...) respect __array_priority__.

I made tests in Theano and they passed. Where should I add test about this in NumPy?

fixes https://github.com/Theano/Theano/issues/1375