Fix some missing type-checking in typed arrays.