[typed arrays] use generic length property access for array dump so that it could be used in non array objects