Fix #788: Add typings and compiler support for TypedArrays

the time of *this* writing.