fixed array-like objects issue
Fixed test case
Added dev dependencies for typescript