Port over TypedArray JS patches from m-c
Port over misc patches from m-c