Backport Fix js.ArrayOps.repr.

Its default implementation is to return
  this.asInstanceOf[Repr]
but we have to override it to return `array`.

(cherry picked from commit 5d17c1bfe9bc5bde855804f747eee9dfc4c5a869)