closes #783, support for array.length