Fix toArrayRecursive method
Merge pull request #4 from tanyaKalashnik/master

Fix toArrayRecursive method