Fix #788: Add typings and compiler support for TypedArrays

val? Same thing for `byteLength` and `byteOffset`.