Fix #788: Add typings and compiler support for TypedArrays

I would prefer `js.typedarray`. IMO everything that is standardized (now or in the future) in ECMAScript should live in or under `js`.