Fix recursive iteration bug

When iterating over a sub-object, it_obj is not reset to NULL and causes it to incorrectly display the first item twice.
Merge pull request #46 from allanjude/patch-1

Fix recursive iteration bug