Fix #788: Add typings and compiler support for TypedArrays

I would have put that in `scala.scalajs.js.typedarray`, no?