Fixed memory leak bug

Keys where left with empty objects instead of being entirely cleaned up,
when wildcards are enabled. The examples in #65 results in a garbage
collected tree with this patch.

Fixes #65
Merge pull request #132 from grantila/memory-leak-fix

Fixed memory leak