Added base (JS) TypedArray allocation class.