interpreter: better comparison operator with ndarrays