contrib/jwrapper: fix == between arrays of different dimensions