[js] arrays: use correct length get mechanism for array iter - it is a 'virtual' array and not necessarily a real array