[js] typed_arrays: a few more test cases for subarray()