[for-in] fix memory leak - key was not copied to iterator
[for-in] added initial unit test