jinterface: fix array comparisons in OtpErlangFun.equals